﻿<%@ Page Language="C#" MasterPageFile="~/Management/ManagementMasterPage.master" AutoEventWireup="true" CodeBehind="xinwenslist.aspx.cs" Inherits="WebApp.Management.Ad.xinwenslist" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
<asp:ListView ID="lvActivity" runat="server" 
        onitemcommand="lvActivity_ItemCommand">
		<LayoutTemplate>
			<table cellpadding="2"  border="1">
				<tr>
					<th>类别 </th>
				
				</tr>
				<asp:PlaceHolder id=itemPlaceholder runat=server/>
			</table>
			<asp:DataPager ID="dpActivity" runat="server" PagedControlID="lvActivity" PageSize="20">
				<Fields>
					<asp:NextPreviousPagerField ButtonType=Link ShowFirstPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
					<asp:NumericPagerField />
					<asp:NextPreviousPagerField ButtonType=Link ShowLastPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
				</Fields>
			</asp:DataPager>
		</LayoutTemplate>
		<ItemTemplate>
			<tr>
				
				<td>
					<%# Eval("name")%>
				</td>
				<td>
					<a href=addxinwclass.aspx?PID=<%# Eval("id") %>>修改</a>
					<asp:LinkButton ID=btnDelete runat="server" CommandName=OnDelete CommandArgument=<%# Eval("id") %> OnClientClick="return confirm('确定要删除吗？');">删除</asp:LinkButton>
				</td>
			</tr>
		</ItemTemplate>
	</asp:ListView>
</asp:Content>
